FROM python:slim

WORKDIR /www/app
ENV DOCKER_MODE=1

COPY app /www/app
RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 3000
VOLUME ["/www/app/log", "/www/app/media/data"]

CMD ["gunicorn", "--config", "gunicorn.py", "main:app"]
